package com.xbongbong.pro.applist.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * 移动端常用筛选字段
 *
 * @author long.rao
 * @version v1.0
 * @date 2019/3/7 16:41
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class AppListFilterAttrPojo {

    /**
     * 移动端支持设置常用筛选的字段(不包括默认的筛选字段)
     */
    private List<SelectPojo> selectPojoList;
    /**
     * 当前设置的筛选字段
     */
    private List<String> selectedAttrList;
    /**
     * 当前设置的筛选字段对应的筛选项信息
     */
    private List<SelectPojo> currentSelectPojoList;
    /**
     * 移动端默认的筛选字段
     */
    List<SelectPojo> defaultSelectPojoList;

    public AppListFilterAttrPojo() {

    }

    public AppListFilterAttrPojo(List<SelectPojo> selectPojoList, List<String> selectedAttrList, List<SelectPojo> currentSelectPojoList) {
        this.selectPojoList = selectPojoList;
        this.selectedAttrList = selectedAttrList;
        this.currentSelectPojoList = currentSelectPojoList;
    }

    public AppListFilterAttrPojo(List<SelectPojo> selectPojoList, List<String> selectedAttrList, List<SelectPojo> currentSelectPojoList, List<SelectPojo> defaultSelectPojoList) {
        this.selectPojoList = selectPojoList;
        this.selectedAttrList = selectedAttrList;
        this.currentSelectPojoList = currentSelectPojoList;
        this.defaultSelectPojoList = defaultSelectPojoList;
    }
}
